package com.erp.module.miMa

import android.view.View
import com.erp.activity.BaseActivity
import com.erp.R
import kotlinx.android.synthetic.main.activity_mima_fanhui.*
import kotlinx.android.synthetic.main.header_knoya.*

/**
 * Created by Administrator on 2018/1/25/025.
 * 作者：刘洋
 */

class MiMaFanHuiKActivity : BaseActivity(), View.OnClickListener {
    private val a = "MiMaFanHuiActivity"
    override fun getLayoutId(): Int {
        activityname = a
        return R.layout.activity_mima_fanhui
    }

    override fun initCreate() {
        iv_header_left.visibility = View.VISIBLE
        tv_header_title.text = "获取密码成功"
        val password = intent.getStringExtra("password")
        TvMima.text = password
        iv_header_left.setOnClickListener(this)
        BtFanhui.setOnClickListener(this)
    }


    override fun onClick(v: View) {
        when (v) {
            iv_header_left -> finish()
            BtFanhui -> finish()
        }
    }
}
